package com.dt.dubai.sys.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 系统菜单角色操作权限关系表
 */

@Data
@Table(name = "dt_sys_menu_role_operator")
@EqualsAndHashCode(callSuper = false)
public class SysMenuRoleOperatorEntity extends BaseEntity {

    //角色记录ID
    @NotNull(message = "roleRecordId参数不能为空")
    Long roleRecordId;

    //菜单记录ID
    @NotNull(message = "menuRecordId参数不能为空")
    Long menuRecordId;

    //菜单操作权限记录ID
    Long menuOperatorRecordId;

    //按钮类型 1-操作按钮,2-路由按钮,3-事件点击
    Short operationType;


}
